package jbl.model;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Tkf entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tuser", catalog = "jbldangl")
public class Tuser implements java.io.Serializable {

	private String id;
	private String user;
	private String password;
	private String name;
	private String userDescription;
	private Code_tusergroup tuserGroup;
	private Timestamp cjsj;


	@Id
	@Column(name = "id", unique = true, nullable = false, length = 50)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}
	@Column(name = "user", length = 50)
	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}
	@Column(name = "password", length = 50)
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	@Column(name = "name", length = 50)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	@Column(name = "userDescription", length = 50)
	public String getUserDescription() {
		return userDescription;
	}

	public void setUserDescription(String userDescription) {
		this.userDescription = userDescription;
	}
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "userGroupId")
	public Code_tusergroup getTuserGroup() {
		return tuserGroup;
	}

	public void setTuserGroup(Code_tusergroup tuserGroup) {
		this.tuserGroup = tuserGroup;
	}
	@Column(name = "cjsj", length = 11)
	public Timestamp getCjsj() {
		return cjsj;
	}

	public void setCjsj(Timestamp cjsj) {
		this.cjsj = cjsj;
	}
}